###
 # @Company: TWL
 # @Author: xue jian
 # @Email: xuejian@kanzhun.com
 # @Date: 2020-04-07 16:53:48
 ###

# ips=("172.21.34.158" "172.21.34.45")
ips=("172.21.34.45") #index-02

for ip in ${ips[*]}
do
    echo $ip
    ssh -p 13122 work@$ip 'rm -rf /data/index_service/geek_conf/cp_active_time;
    exit'
    scp -P 13122 cp_active_time work@$ip:/data/index_service/geek_conf/
done